package com.hnas.ecard.dao;

import com.hnas.core.dao.BaseDao;
import com.hnas.ecard.orm.SaleCardOrderDetail;
import com.hnas.ecard.service.dto.DTOSaleCardOrder;
import com.hnas.ecard.service.dto.DTOSaleCardOrderDetail;
import com.hnas.ecard.service.dto.DTOSaleCardRecord;

public interface SaleCardOrderDetailDao extends BaseDao<SaleCardOrderDetail>{

	/**
	 * 添加/修改售卡订单详情记录
	 * @Title: saveOrUpdate  
	 * @Description:  
	 * @param vo
	 * @return
	 * @throws
	 */
	SaleCardOrderDetail saveOrUpdate(DTOSaleCardOrderDetail dto);
	/**
	 * 根据订单编号查询售卡订单详情记录
	 * @Title: findByOrderNo  
	 * @Description:  
	 * @param orderNo
	 * @return
	 * @throws
	 */
	SaleCardOrderDetail findByOrderNo(String orderNo);
	/**
	 * 根据订单编号查询售卡订单记录（包含详情）
	 * @Title: findByOrderNo  
	 * @Description:  
	 * @param orderNo
	 * @return
	 * @throws
	 */
	DTOSaleCardOrder findSaleCardOrderByOrderNo(String orderNo);
	/**
	 * 根据微信交易流水号查询售卡订单记录（包含详情）
	 * @Title: findSaleCardOrderBySwiftNumber  
	 * @Description:  
	 * @param swiftNumber
	 * @return
	 * @throws
	 */
	DTOSaleCardOrder findSaleCardOrderBySwiftNumber(String swiftNumber);
	/**
	 * 根据微信交易流水号查询售卡交易记录（包含详情）
	 * @Title: findSaleCardRecordBySwiftNumber  
	 * @Description:  
	 * @param swiftNumber
	 * @return
	 * @throws
	 */
	DTOSaleCardRecord findSaleCardRecordBySwiftNumber(String swiftNumber);
}
